import type { UserInfo } from '@/types/user'

import request from '@/utils/request'
// 获取当前用户信息
export const getUserInfo = () => {
    return request<UserInfo>({
        method: 'GET',
        url: '/user'
    })
}